package com.lee.boot.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;

import lombok.Data;

@Data
@TableName(value = "product_info")
public class ProductInfo {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品id
     */
    @TableField(value = "product_id")
    private String productId;

    /**
     * 商品名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 商品库存
     */
    @TableField(value = "inventory_count")
    private Integer inventoryCount;

    /**
     * 商品单价
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 版本
     */
    @TableField(value = "version")
    private Integer version;

    /**
     * 备注
     */
    @TableField(value = "mark")
    private String mark;
}